home *** CD-ROM | disk | FTP | other *** search
/ PCMania 73 / PCMania CD73_1.iso / pcmania / render73 / Foro / FUERTES / THERMOP2 / MOTORES.BKP < prev    next >
Text File  |  1998-09-22  |  15KB  |  518 lines

  1. #declare fuego_trasero=0 --> pone llamarada trasera en motores
  2. //#declare fuego_delantero=0 --> pone llamarada delantera en motores
  3.  
  4. /********************************** inicio fuego *******************************/
  5. #declare fuego=
  6.   sphere
  7.   {
  8.    0,1
  9.    hollow
  10.    pigment {rgbt 1}
  11.    halo
  12.    {
  13.     linear
  14.     emitting
  15.     turbulence .1
  16.     jitter .2
  17.     color_map
  18.     {
  19.      [0 rgbt <2,2,0,1>]
  20.      [.1 rgbt <2,2,0,0.80>]
  21.      [.3 rgbt <2,2,0,0.75>]
  22.      [.5 red 1]
  23.      [.85 rgb 2]
  24.      [1 rgb 2]
  25.     }
  26.    }
  27.    scale <8,1,1>
  28.   }
  29. /********************************** fin fuego *******************************/
  30.  
  31. /********************************** gondola principal *******************************/
  32. #declare gondola1=
  33. union
  34. {
  35.  cylinder {<-52,10,0>,<52,10,0>,10}
  36.  cone {<-52,10,0>,10,<-53,10,0>,9}
  37.  cone {<-52,-10,0>,10,<-53,-10,0>,9}
  38.  cylinder {<-52,-10,0>,<52,-10,0>,10}
  39.  cone {<52,10,0>,10,<53,10,0>,9}
  40.  cone {<52,-10,0>,10,<53,-10,0>,9}
  41.  box {<-52,10,-10>,<52,-10,10>}
  42.  prism {linear_spline 10,-10 5 <-52,-10>,<-53,-9>,<-53,9>,<-52,10>,<-52,-10>}
  43.  prism {linear_spline 10,-10 5 <52,-10>,<53,-9>,<53,9>,<52,10>,<52,-10>}
  44.  //---------------
  45.  cylinder {<-22,10,0>,<22,10,0>,12}
  46.  cone {<-22,10,0>,12,<-25,10,0>,10.5}
  47.  cone {<-22,-10,0>,12,<-25,-10,0>,10.5}
  48.  cylinder {<-22,-10,0>,<22,-10,0>,12}
  49.  cone {<22,10,0>,12,<25,10,0>,10.5}
  50.  cone {<22,-10,0>,12,<25,-10,0>,10.5}
  51.  prism {linear_spline 10,-10 5 <-25,10>,<-22,12>,<22,12>,<25,10>,<-25,10>}
  52.  prism {linear_spline 10,-10 5 <-25,-10>,<-22,-12>,<22,-12>,<25,-10>,<-25,-10>}
  53. }
  54.  
  55. #declare gondola4=
  56. intersection
  57. {
  58.  object {gondola1 scale 1.035}
  59.  union //------------------ relieves
  60.  {
  61.   box {<40,5,-15>,<50,25,15>}
  62.   box {<40,-5,-15>,<50,-25,15>}
  63.   box {<20,-2,-11>,<40,2,15>}
  64.   box {<20,5,-15>,<35,10,15>}
  65.   box {<20,-5,-15>,<35,-10,15>}
  66.   box {<20,15,-15>,<35,25,15>}
  67.   box {<20,-15,-15>,<35,-25,15>}
  68.  }
  69.  texture {gris975}
  70.  bounded_by {box{<-56,25,15>,<56,-25,-15>}}
  71. }
  72.  
  73. #declare gondola2=
  74. intersection
  75. {
  76.  object {gondola1 scale 1.005}
  77.  union //------------------- lineas
  78.  {
  79.    box {<-39.95,22,-15>,<-40.05,-22,15>}
  80.    box {<-55.05,9.925,-15>,<-40,10.075,15>}
  81.    box {<-55.05,.075,-15>,<-40,-.075,15>}
  82.    box {<-55.05,-9.925,-15>,<-40,-10.075,15>}
  83.  
  84.    box {<-25.25,22,-15>,<-25.40,-22,15>}
  85.    box {<25.25,22,-15>,<25.40,-22,15>}
  86.  
  87.    box {<-25,-.075,-15>,<25,.075,15>}
  88.    box {<55.05,-.075,-15>,<45,.075,15>}
  89.    box {<44.925,22,-15>,<45.075,-22,15>}
  90.    box {<30.925,22,-15>,<31.075,-22,15>}
  91.  }
  92.  texture {gris1}
  93.  bounded_by {box{<-56,25,15>,<56,-25,-15>}}
  94. }
  95.  
  96.  
  97. #declare tobera_p=
  98. difference
  99. {
  100.  cone {0,8,x*-2,7}
  101.  #declare aa=0
  102.  #while (aa<180)
  103.     box {<.5,.05,-10>,<-2.5,-.05,10> rotate x*aa pigment {rgb 0}}
  104.     #declare aa=aa+10
  105.  #end
  106.  pigment {rgb .35}
  107.  finish {specular 1 roughness .005 metallic }
  108. }
  109.  
  110. #declare resta_gon=
  111. union
  112. {
  113.  cone {<-65,0,0>,10,<-40,0,0>0}
  114.  cylinder {<-56,0,0>,0,3.5}
  115.  pigment {rgb .25}
  116.  finish {specular 1 }
  117. }
  118.  
  119. #declare gondola_a=
  120. difference
  121. {
  122.  union
  123.  {
  124.   object {gondola4}
  125.   object {gondola1}
  126.   object {gondola2}
  127.   object {tobera_p translate <-53,10,0>}
  128.   object {tobera_p translate <-53,-10,0>}
  129.   object {tobera_p rotate y*180 translate <53,10,0>}
  130.   object {tobera_p rotate y*180 translate <53,-10,0>}
  131.  }
  132.  union
  133.  {
  134.   object {resta_gon translate y*10}
  135.   object {resta_gon translate y*-10}
  136.   object {resta_gon rotate y*180 translate y*10}
  137.   object {resta_gon rotate y*180 translate y*-10}
  138.  }
  139. }
  140.  
  141. #declare gondola3=
  142. intersection
  143. {
  144.  object {gondola1 scale 1.0005}
  145.  union //------------------ paneles
  146.  {
  147.    box {<-10,25,15>,<-12,-25,-15>}
  148.    box {<-17,5,-15>,<-20,-5,15>}
  149.    box {<0,-13,-15>,<9,-15,15>}
  150.    box {<0,13,-15>,<10,15,15>}
  151.    box {<10,10,15>,<15,25,-15>}
  152.    cylinder {<15,4,15>,<15,4,-15>,1}
  153.    cylinder {<15,-4,15>,<15,-4,-15>,1}
  154.  }
  155.  texture {gris8}
  156.  bounded_by {box{<-56,25,15>,<56,-25,-15>}}
  157. }
  158.  
  159. #declare varilla_gon=
  160. union
  161. {
  162.  sphere {<-45,0,-10>,1}
  163.  sphere {<-30,0,-10>,1}
  164.  cylinder {<-30,0,-10>,<-45,0,-10>,1}
  165.  sphere {<-45,0,10>,1}
  166.  sphere {<-30,0,10>,1}
  167.  cylinder {<-30,0,10>,<-45,0,10>,1}
  168. }
  169.  
  170. #declare detalles_gon=
  171. union
  172. {
  173.  sphere {<-53,0,-5>,1 pigment {rgb .75}}
  174.  sphere {<-53,0,5>,1 pigment {rgb .75}}
  175.  sphere {<53,0,-5>,1 pigment {rgb .75}}
  176.  sphere {<53,0,5>,1 pigment {rgb .75}}
  177.  #declare aa=0
  178.  #while (aa<180)
  179.    object {varilla_gon rotate x*aa translate y*-10}
  180.    object {varilla_gon rotate x*aa translate y*10}
  181.    #declare aa=aa+30
  182.  #end
  183.  #declare aa=10
  184.  #while (aa>-11)
  185.    object {varilla_gon translate y*aa}
  186.    #declare aa=aa-5
  187.  #end
  188. }
  189.  
  190. #declare gondola=
  191. union
  192. {
  193.  object {gondola_a}
  194.  object {gondola3}
  195.  object {detalles_gon}
  196.  cylinder {<-41,10,0>,<41,10,0>,3.51 pigment {rgb 0}}
  197.  cylinder {<-41,-10,0>,<41,-10,0>,3.51 pigment {rgb 0}}
  198.  #ifdef (fuego_trasero)
  199.         object {fuego scale <10,10,10> translate <30,10,0>}
  200.         object {fuego scale <10,10,10> translate <30,-10,0>}
  201.  #end
  202.  #ifdef (fuego_delantero)
  203.         object {fuego rotate y*180 translate <-30,10,0>}
  204.         object {fuego rotate y*180 translate <-30,-10,0>}
  205.  #end
  206. }
  207.  
  208. #declare gondola_iz=
  209. union
  210. {
  211.  object {gondola}
  212.  box {<-10,-10,-10>,<10,10,-15>}
  213.  cylinder {<0,0,-15>,<0,0,-16>,1.5}
  214.  sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  215.      {[0 rgbt <1,0,0,1>][0.6 rgbt <2,0,0,.75>][1 red 2]}} scale 2 translate <0,0,-16.1>}
  216. }
  217.  
  218. #declare gondola_de=
  219. union
  220. {
  221.  object {gondola}
  222.  box {<-10,-10,10>,<10,10,15>}
  223.  cylinder {<0,0,15>,<0,0,16>,1.5}
  224.  sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  225.      {[0 rgbt <1,0,0,1>][0.6 rgbt <2,0,0,.75>][1 red 2]}} scale 2 translate <0,0,16.1>}
  226. }
  227. /******************************* fin gondola principal *******************************/
  228.  
  229. /*******************************  gondola secundaria *******************************/
  230. #declare tobera_s=
  231. difference
  232. {
  233.   cone {<-35,0,0>,3,<-40,0,0>,2}
  234.   cone {<-41,0,0>,1.85,<-35.5,0,0>,0 pigment {rgb .25}}
  235.   #declare aa=0
  236.   #while (aa<180)
  237.          box {<-34,.01,-4>,<-41,-.01,4> rotate x*aa pigment {rgb 0}}
  238.          #declare aa=aa+30
  239.   #end
  240.   pigment {rgb .35}
  241.   finish {specular 1 roughness .005 metallic }
  242. }
  243.  
  244. #declare gondola_s=
  245. union
  246. {
  247.  cylinder {<-35,5,0>,<35,5,0>,4}
  248.  cylinder {<-35,-5,0>,<35,-5,0>,4}
  249.  box {<-35,5,4>,<35,-5,-4>}
  250.  cylinder {<-25,5,0>,<-20,5,0>,5}
  251.  cylinder {<-25,-5,0>,<-20,-5,0>,5}
  252.  cylinder {<5,5,0>,<-5,5,0>,5}
  253.  cylinder {<5,-5,0>,<-5,-5,0>,5}
  254.  cylinder {<25,5,0>,<20,5,0>,5}
  255.  cylinder {<25,-5,0>,<20,-5,0>,5}
  256.  cone {<-35,-5,0>,4,<-36,-5,0>,3}
  257.  cone {<-35,5,0>,4,<-36,5,0>,3}
  258.  cone {<35,-5,0>,4,<36,-5,0>,3}
  259.  cone {<35,5,0>,4,<36,5,0>,3}
  260.  object {tobera_s translate y*5}
  261.  object {tobera_s translate y*-5}
  262.  object {tobera_s rotate y*180 translate y*-5}
  263.  object {tobera_s rotate y*180 translate y*5}
  264.  cylinder {<-22,9,0>,<22,9,0>,1}
  265.  box {<-35,1,3>,<-35.6,-1,-3> pigment {rgb .8}}
  266.  box {<35,1,3>,<35.6,-1,-3> pigment {rgb .8}}
  267. }
  268. /******************************* fin gondola secundaria *******************************/
  269.  
  270. /******************************* soporte *******************************/
  271. #declare soporte=
  272. union
  273. {
  274.  prism
  275.  {
  276.   linear_spline 20,-20 4 <16,-3>,<32,12>,<24,12>,<16,-3>
  277.   rotate <-90,90,0>}
  278.  prism
  279.  {
  280.   linear_spline 25,-25 6 <16,-3>,<25,5>,<25,13>,<19,17>,<15,17>,<16,-3>
  281.   rotate <-90,90,0> pigment {rgb .86}}
  282.  difference
  283.  {
  284.   prism
  285.   {linear_spline 0,-15 9 <-15,8>,<15,8>,<25,3>,<25,-7>,<15,-12>,
  286.                 <-15,-12>,<-25,-7>,<-25,3>,<-15,8> rotate x*90}
  287.   box {<-30,15,-7>,<30,-15,-8> pigment {rgb 0}}
  288.  }
  289.  box {<-26,4,-5>,<26,-2,-10> pigment {rgb .86}}
  290.  box {<-14,13,-2>,<14,-9,-8> pigment {rgb .86}}
  291. }
  292. /******************************* fin soporte *******************************/
  293.  
  294. /******************************* inicio torres *******************************/
  295. #declare torre_superior=
  296. union
  297. {
  298.  box {<0,0,-2>,<5,110,2>
  299.      pigment {rgb 1}
  300.      finish {specular 1}
  301.      normal {checker scale 2 bump_size 1}}
  302.  union
  303.  {
  304.     box {<0,0,-1.5>,<-5,60,1.5>}
  305.     box {<0,60,-1.5>,<-3,115,1.5>}
  306.     prism {linear_spline -1.5,1.5 4 <-3,60>,<-3,95>,<-5,60>,<-3,60> rotate x*-90}
  307.     pigment {rgb 1}
  308.     finish {specular 1}
  309.     normal {marble bump_size 1}
  310.  }
  311.  prism {linear_spline -1,1 5 <-5,0>,<-5,30>,<-10,20>,<-10,0>,<-5,0> rotate x*-90}
  312.  prism {linear_spline -1,1 5 <5,0>,<5,90>,<10,80>,<10,0>,<5,0> rotate x*-90}
  313.  sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  314.      {[0 rgbt <1,0,0,1>][0.6 rgbt <2,0,0,.75>][1 red 2]}} scale 2 translate <-3,116,0>}
  315.  texture {blanca}
  316. }
  317.  
  318. #declare torre_inferior=
  319. union
  320. {
  321.  box {<-5,0,-1>,<0,-75,1>
  322.     pigment {rgb 1}
  323.     finish {specular 1}
  324.     normal {checker scale 1 bump_size 1}}
  325.  prism {linear_spline -1.5,1.5 5 <0,0>,<0,-80>,<5,-110>,<5,0>,<0,0> rotate x*-90
  326.      pigment {rgb 1}
  327.      finish {specular 1}
  328.      normal {marble bump_size 1}}
  329.  prism {linear_spline -1,1 4 <-5,0>,<-10,0>,<-5,-40>,<-5,0> rotate x*-90}
  330.  prism {linear_spline -1,1 5 <5,0>,<5,-70>,<10,-60>,<10,0>,<5,0> rotate x*-90}
  331.  sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  332.      {[0 rgbt <1,0,0,1>][0.6 rgbt <2,0,0,.75>][1 red 2]}} scale 2 translate <5,-111,0>}
  333.  texture{blanca}
  334. }
  335. /******************************* fin torres *******************************/
  336.  
  337. //****************** inicio motores_secundarios *****************************
  338. #declare tobera_sup=
  339. difference
  340. {
  341.  cone {0,5,y*3,4}
  342.  union
  343.  {
  344.   #declare aa=0
  345.   #while (aa<180)
  346.         box {<-6,-1,.2>,<6,6,-.2> pigment {rgb 0} rotate y*aa}
  347.         #declare aa=aa+30
  348.   #end
  349.  }
  350.  pigment {rgb .35}
  351.  finish {specular 1 roughness .005 metallic }
  352. }
  353.  
  354. #declare motores_secundarios1=
  355. union
  356. {
  357.  sphere {<-90,5,0>,2}
  358.  cylinder {<-90,5,0>,<-90,-5,0>,2}
  359.  sphere {<-90,-5,0>,2}
  360.  cone {<-50,5,0>,10,<-90,5,0>,2}
  361.  prism {linear_spline -5,5 5 <-90,2>,<-50,10>,<-50,-10>,<-90,-2>,<-90,2>}
  362.  cone {<-50,-5,0>,10,<-90,-5,0>,2}
  363.  cylinder {<-50,5,0>,<50,5,0>,10}
  364.  box {<-50,5,-10>,<50,-5,10>}
  365.  cylinder {<-50,-5,0>,<50,-5,0>,10}
  366.  cone {<50,5,0>,10,<80,5,0>,2}
  367.  prism {linear_spline -5,5 5 <80,2>,<50,10>,<50,-10>,<80,-2>,<80,2>}
  368.  cone {<50,-5,0>,10,<80,-5,0>,2}
  369.  sphere {<80,5,0>,2}
  370.  cylinder {<80,5,0>,<80,-5,0>,2}
  371.  sphere {<80,-5,0>,2}
  372.  union
  373.  {
  374.   box {<-48,10,6>,<-2,16,-6>}
  375.   object {tobera_sup translate <-38,16,0>}
  376.   object {tobera_sup translate <-26,16,0>}
  377.   object {tobera_sup translate <-14,16,0>}
  378.  }
  379.  union
  380.  {
  381.   box {<-48,10,6>,<-2,16,-6>}
  382.   object {tobera_sup translate <-38,16,0>}
  383.   object {tobera_sup translate <-26,16,0>}
  384.   object {tobera_sup translate <-14,16,0>}
  385.   rotate x*180
  386.  }
  387.  cylinder {<-38,16.5,0>,<-38,-16.6,0>,5.5 pigment {rgb .35}}
  388.  cylinder {<-26,16.5,0>,<-26,-16.5,0>,5.5 pigment {rgb .35}}
  389.  cylinder {<-14,16.5,0>,<-14,-16.5,0>,5.5 pigment {rgb .35}}
  390.  // ------------ detalles
  391.  union
  392.  {
  393.   prism {linear_spline -5,-4.75 5 <-90,2>,<-50,10>,<-50,-10>,<-90,-2>,<-90,2>}
  394.   cylinder {<-90,5,0>,<-90,4.75,0>,2.001}
  395.   prism {linear_spline 5,4.75 5 <-90,2>,<-50,10>,<-50,-10>,<-90,-2>,<-90,2>}
  396.   cylinder {<-90,-5,0>,<-90,-4.75,0>,2.001}
  397.   prism {linear_spline -5,-4.75 5 <80,2>,<50,10>,<50,-10>,<80,-2>,<80,2>}
  398.   cylinder {<80,5,0>,<80,4.75,0>,2.001}
  399.   prism {linear_spline 5,4.75 5 <80,2>,<50,10>,<50,-10>,<80,-2>,<80,2>}
  400.   cylinder {<80,-5,0>,<80,-4.75,0>,2.001}
  401.    cylinder {<30,5,0>,<30.75,5,0>,11.001}
  402.    cylinder {<30,-5,0>,<30.75,-5,0>,11.001}
  403.   pigment {rgb 0}
  404.  }
  405.  union
  406.  {
  407.   prism {linear_spline 1,4.75 5 <-90,2>,<-50,10>,<-50,-10>,<-90,-2>,<-90,2>}
  408.   cylinder {<-90,1,0>,<-90,4.75,0>,2.001}
  409.   texture {gris85}
  410.  }
  411.  cylinder {<4,5,0>,<48,5,0>,11}
  412.  cylinder {<4,-5,0>,<48,-5,0>,11}
  413.  union
  414.  {
  415.   cylinder {<20,5,0>,<28,5,0>,11.001}
  416.   cylinder {<20,-5,0>,<28,-5,0>,11.001}
  417.   texture {gris85}
  418.  }
  419.  union
  420.  {
  421.   sphere {<-3,11,0>,2}
  422.   cylinder {<-3,11,0>,<3,11,0>,2}
  423.   sphere {<3,11,0>,2}
  424.   rotate x*45 translate <40,5,0>
  425.  }
  426.  union
  427.  {
  428.   sphere {<-3,11,0>,2}
  429.   cylinder {<-3,11,0>,<3,11,0>,2}
  430.   sphere {<3,11,0>,2}
  431.   rotate x*-45 translate <40,5,0>
  432.  }
  433.  union
  434.  {
  435.   cone {<-44,0,0>,5,<-46,0,0>,4}
  436.   cylinder {<-44,0,0>,<-20,0,0>,5}
  437.   cone {<-20,0,0>,5,<-18,0,0>,4}
  438.   scale <1,1,.5>
  439.   texture {gris85}
  440.   translate <0,0,-10>
  441.  }
  442.  union
  443.  {
  444.   cone {<-44,0,0>,5,<-46,0,0>,4}
  445.   cylinder {<-44,0,0>,<-20,0,0>,5}
  446.   cone {<-20,0,0>,5,<-18,0,0>,4}
  447.   scale <1,1,.5>
  448.   texture {gris85}
  449.   translate <0,0,10>
  450.  }
  451.  union
  452.  {
  453.   cylinder {<-30,5,0>,<-37.5,5,0>,10.001}
  454.   box {<-30,5,10.001>,<-37.5,-5,-10.001>}
  455.   cylinder {<-30,-5,0>,<-37.5,-5,0>,10.001}
  456.   texture {gris85}
  457.  }
  458. }
  459.  
  460. #declare motores_secundarios2=
  461. difference
  462. {
  463.  object {motores_secundarios1}
  464.  cylinder {<-38,20,0>,<-38,-20,0>,3 pigment {rgb .35}}
  465.  cylinder {<-26,20,0>,<-26,-20,0>,3 pigment {rgb .35}}
  466.  cylinder {<-14,20,0>,<-14,-20,0>,3 pigment {rgb .35}}
  467.  bounded_by {box {<-100,20,25>,<100,-20,-25>}}
  468. }
  469.  
  470. #declare motores_secundarios=
  471. union //luces
  472. {
  473.   object {motores_secundarios2}
  474.   sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  475.          {[0 rgbt <0,1,0,1>][0.6 rgbt <0,2,0,.75>][1 green 2]}} scale 2 translate <-91.5,6.5,0>}
  476.   sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  477.          {[0 rgbt <0,1,0,1>][0.6 rgbt <0,2,0,.75>][1 green 2]}} scale 2 translate <-91.5,-6.5,0>}
  478.   sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  479.          {[0 rgbt <0,1,0,1>][0.6 rgbt <0,2,0,.75>][1 green 2]}} scale 2 translate <81.5,6.5,0>}
  480.   sphere { 0,1 pigment {rgbt 1} hollow halo {linear emitting color_map
  481.          {[0 rgbt <0,1,0,1>][0.6 rgbt <0,2,0,.75>][1 green 2]}} scale 2 translate <81.5,-6.5,0>}
  482.   union
  483.   {
  484.    sphere {<9,16,0>,1}
  485.    cylinder{<9,16,0>,<31,16,0>,1}
  486.    sphere {<31,16,0>,1}
  487.    sphere {<9,-16,0>,1}
  488.    cylinder{<9,-16,0>,<31,16,0>,1}
  489.    sphere {<31,-16,0>,1}
  490.    scale <1,1,3>
  491.   }
  492.   object {torre_superior translate <20,12,0>}
  493.   object {torre_inferior translate <20,-12,0>}
  494. }
  495. //****************** fin motores_secundarios *****************************
  496.  
  497. /******************************* motores *******************************/
  498. #declare motor_izquierdo=
  499. union
  500. {
  501.  object {gondola_iz rotate x*-45 translate z*-49.5} //32
  502.  object {gondola_s translate <0,12,-32.5>} //15
  503.  object {soporte translate z*-17.5} //0
  504.  object {motores_secundarios translate z*-10}
  505.  texture {blanca}
  506. }
  507.  
  508. #declare motor_derecho=
  509. union
  510. {
  511.  object {gondola_de rotate x*45 translate z*49.5} //32
  512.  object {gondola_s translate <0,12,32.5>} //15
  513.  object {soporte rotate y*180 translate z*17.5}
  514.  object {motores_secundarios translate z*10}
  515.  texture {blanca}
  516. }
  517. /******************************* fin motores *******************************/
  518.